package gstyle.stylesheet;

import com.google.gwt.dom.client.StyleElement;

public class InternetExplorerStyleElementInjector implements StyleElementInjector {
    public void injectStyle(String compiledStyle) {
        StyleElement style = createElement();
        setContents(style, compiledStyle);
    }

    protected native com.google.gwt.dom.client.StyleElement createElement()/*-{
        return $doc.createStyleSheet();
    }-*/;

    protected native void setContents(com.google.gwt.dom.client.StyleElement style, String contents)/*-{
         style.cssText=contents;
    }-*/;
}
